<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	response.setHeader("Access-Control-Allow-Origin", "*");
%>
<!DOCTYPE html>
<html>
<style>
#name {
	color: black;
	font-size: 30px;
	font-weight: 100;
}

.name {
	width: 260px;
	font-weight: 700;
}

.value {
	width: calc(100% - 260px);
}

.a-row {
	border-bottom: 1px dotted #abb2bf;
	display: flex;
	padding: 10px 0;
	margin: 0 0 0 10px;
	font-size: 14px;
}

.ibox-content h2 {
	background: #1AB394;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.5rem;
	font-weight: 400;
	margin: 0 0 5px 0;
	padding: .6rem;
}
</style>
<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>${webName }·数据工厂</title>	
<link href="${pageContext.request.contextPath }/img/webLogoIcon.png"
	rel="shortcut icon">
<link href="${pageContext.request.contextPath }/css/bootstrap.min.css"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath }/font-awesome/css/font-awesome.css"
	rel="stylesheet">

<!-- Toastr style -->
<link
	href="${pageContext.request.contextPath }/css/plugins/toastr/toastr.min.css"
	rel="stylesheet">

<link href="${pageContext.request.contextPath }/css/animate.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath }/css/style.css"
	rel="stylesheet">



</head>

<body>

	<div id="wrapper">
		<nav class="navbar-default navbar-static-side" role="navigation">
			
			<%@include file="../components/left.jsp"%>
		</nav>


		<div id="page-wrapper" class="gray-bg">
			<div class="row border-bottom f-0">
				<jsp:include page="../components/head.jsp" flush="true" />
			</div>
			<div class="row wrapper border-bottom white-bg page-heading"
				style="margin-top: 20px">
				<div class="col-lg-10">
					<h2>${webName }</h2>
					<ol class="breadcrumb">
						<li><a href="index.html">首页</a></li>
						<li><a>${webName }</a></li>
						<li class="active"><strong>详情</strong></li>
					</ol>
				</div>
			</div>

			<div class="wrapper wrapper-content  animated fadeInRight article">
				<div class="row">

					<div class="col-lg-12 col-lg-offset" style="padding-right: 20px">
						<div class="ibox">
							<div class="ibox-content" id="list">
								<!-- <div>
									<span id="detial_head" style="font-size: 25px;">
										康德莱关于对全资子公司增资的公告 </span>
								</div>
								<div style="margin-top: 5px;">
									<span style="float: left;">2019-02-26</span> 
									<a href="http://pdf.dfcfw.com/pdf/H2_AN201902261300232173_1.pdf" target="_black" style="float: left; margin-left: 20px;">
									<i class="fa fa-arrows-alt"></i> 全屏查看</a> 
									<a title="下载" href="/spider-web/informationList/todownload?id=7529903&amp;type=1" style="float: left; margin-left: 20px;">
									<i class="fa fa-download"></i></a>
								</div>
								<p id="detial_information" style="width:85%;margin-top:50px">
									<iframe id="myiframe"
										src="http://pdf.dfcfw.com/pdf/H2_AN201902261300232173_1.pdf"
										scrolling="no" name="pdfPage" frameborder="0" width="100%" height="905px">
									</iframe>
								</p> -->


							</div>
						</div>

					</div>

				</div>


			</div>

<jsp:include page="../components/footer.jsp" flush="true" />
		</div>

	</div>



	<!-- Mainly scripts -->
	<script src="${pageContext.request.contextPath }/js/jquery-2.1.1.js"></script>
	<script src="${pageContext.request.contextPath }/js/bootstrap.min.js"></script>
	<script
		src="${pageContext.request.contextPath }/js/plugins/metisMenu/jquery.metisMenu.js"></script>
	<script
		src="${pageContext.request.contextPath }/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

	<!-- Custom and plugin javascript -->
	<script src="${pageContext.request.contextPath }/js/inspinia.js"></script>
	<script
		src="${pageContext.request.contextPath }/js/plugins/pace/pace.min.js"></script>
	<script src="${pageContext.request.contextPath }/js/userCustom.js"></script>
	<script type="text/javascript">
		var article_public_id = '${article_public_id}';
		var type='${type}';
		detail();
		function detail() {
			$
					.ajax({
						url : "${pageContext.request.contextPath}/researchReport/getresearch-report-detail",
						type : "post",
						data : {
							article_public_id : article_public_id,
							type:type
						},
						success : function(res1) {
							console.log(res1);
							let res = JSON.parse(res1);
							let date=/\d{4}-\d{1,2}-\d{1,2}/g.exec(res.reportDate);
							var html = '';
							html+='<div>'+
								'<span id="detial_head" style="font-size: 25px;">'+res.title+'</span>'+
					'</div>'+
					'<div style="margin-top: 5px;">'+
						'<span style="float: left;">'+date+'</span>'+
						'<a href="'+res.url+'" target="_black" style="float: left; margin-left: 20px;">'+
					'</div>'+
						'<i class="fa fa-arrows-alt"></i> 全屏查看</a> '+
					'<p id="detial_information" style="width:85%;margin-top:50px">'+
						'<iframe id="myiframe" src="'+res.url+'" scrolling="no" name="pdfPage" frameborder="0" width="100%" height="905px">'+
					'</p>'
						'</iframe>'+
							$('#list').html(html);
						},

						error : function(err) {
							console.log(err)
						}
					});
		}
	</script>

	<script>
		var navlist = '<li><a class="nav2active" href="#">工商信息</a></li>'
				+ '<li><a href="#">投资融资</a></li>'
				+ '<li><a href="#">高新企业</a></li>'
		$("#nav3list").append(navlist)
	</script>
</body>

</html>


</body>
</html>